# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=coercer
_pkgname=Coercer
pkgver=2.4.3
pkgrel=4
pkgdesc='Coerce a Windows server to authenticate on an arbitrary machine through 15 methods.'
arch=('any')
groups=('blackarch' 'blackarch-exploitation' 'blackarch-networking'
        'blackarch-windows')
url='https://github.com/p0dalirius/Coercer'
license=('GPL2')
depends=('python' 'impacket' 'python-xlsxwriter')
makedepends=('python-build' 'python-pip')
source=("https://github.com/p0dalirius/Coercer/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('dd30378045d1482d3615b292b2a6acfe3db3ac3434e69967d0721fca4b5cea9f3320f53500a80ff0ec7e11f806efd3ef620f2c24c591b56c809c241ac09d123c')

build() {
  cd "$_pkgname-$pkgver"

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd "$_pkgname-$pkgver"

  pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    "$_pkgname"
}

